﻿@model ECatalog.Models.Size
<div class="container">
    <div class="row col-lg-3">

        @using (Html.BeginForm())
        {
            @Html.AntiForgeryToken()
            @Html.ValidationSummary(true)

            <fieldset>
                <legend>Добавление размера</legend>
                <div class="editor-label">
                    Значение
                </div>
                <div class="editor-field">
                    @Html.TextBoxFor(model => model.Value, new { @class = "form-control" })
                    @Html.ValidationMessageFor(model => model.Value)
                </div>
                <br />
                <p>
                    <input type="submit" value="Создать" class="btn btn-primary" />
                </p>
            </fieldset>
        }
        <div>
            @Html.ActionLink("Назад", "Index")
        </div>

    </div>
</div>
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
    <script type="text/javascript">
        $(document).ready(function () {
            $("select").addClass("form-control");
        });
    </script>
}